/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.phone.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.phone.entity.Users;
import com.jeesite.modules.phone.dao.UsersDao;

/**
 * 用户表Service
 * @author lzw
 * @version 2019-04-03
 */
@Service
@Transactional(readOnly=true)
public class UsersService extends CrudService<UsersDao, Users> {
	
	/**
	 * 获取单条数据
	 * @param users
	 * @return
	 */
	@Override
	public Users get(Users users) {
		return super.get(users);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param users
	 * @return
	 */
	@Override
	public Page<Users> findPage(Page<Users> page, Users users) {
		return super.findPage(page, users);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param users
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(Users users) {
		super.save(users);
	}
	
	/**
	 * 更新状态
	 * @param users
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(Users users) {
		super.updateStatus(users);
	}
	
	/**
	 * 删除数据
	 * @param users
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(Users users) {
		super.delete(users);
	}
	
}